package Demo2;

import java.io.FileNotFoundException;
import java.io.IOException;

public class TestDemo2 {
    public static void func(int a) throws FileNotFoundException,IOException{

    }


    public void getCustomerInfo() {

        try {
            func(20);
        } catch (FileNotFoundException ex) {//编译时异常
            System.out.print("FileNotFoundException!");
        } catch (IOException ex) {//编译时异常
            System.out.print("IOException!");
        } catch (Exception ex) {
            System.out.print("Exception!");
        }
    }

    public static void main(String[] args) {
        new TestDemo2().getCustomerInfo();
    }
}
